
package ro.imc.rest.server.util;

import java.io.IOException;
import java.util.Properties;

public final class RestConfiguration {

	private static final Properties properties = new Properties();

	public static void loadConfiguration() {

		try {
			ClassLoader loader = Thread.currentThread().getContextClassLoader();
			properties.load(loader.getResourceAsStream("ro/imc/rest/rest.conf"));
			properties.list(System.out);
		}
		catch (IOException e) {
			throw new ExceptionInInitializerError(e);
		}
	}

	public static String getSetting(String key) {
		return properties.getProperty(key);
	}
	
	public static void testInfrastructure() {
		
	}

}
